package com.jt.sca.factory;

import com.jt.sca.service.RemoteProviderService;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteProviderService> {
    @Override
    public RemoteProviderService create(Throwable cause) {
        return (msg) -> {
                return "call excpeation";
        };
    }
}
